<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=ADMIN_RES_PATH ?>/css/default/admin.css" rel="stylesheet" type="text/css">
<script src="<?=ADMIN_RES_PATH ?>/js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="<?=ADMIN_RES_PATH ?>/js/public.js" type="text/javascript"></script>
<style type="text/css">
    td img{height:50px; width:250px;}
</style>
</head>
<body>
	<div id="main">
		<?php $slide = $this->slide; ?>
			<div class="title">幻灯片配置</div>
		<div class="content">
			<form method="post" action="<?=ADMIN_PATH ?>/Slide/doupdate" enctype="multipart/form-data">
				<input type="text" name="act" style="display:none" value="<?=$this->act ?>"/>
				<input type="text" name="id" style="display:none" value="<?=$slide['id'] ?>"/>
				<table width="98%" border="0" cellspacing="0" cellpadding="0" class="mytab">
					<tr>
						<td colspan="3" class="tit"><?=$this->title ?></td>
					</tr>
					<tr>
						<td width="189" align="center">标题
						<td width="579"><input type="text" name="title" class="inp" value="<?=$slide['title'] ?>"/></td>
						<td width="350" align="left">对幻灯片的相关描述</td>
					</tr>
					<tr>
						<td align="center">显示顺序</td>
						<td align="left"><input type="text" name="order" class="inp" value="<?=$slide['order'] ?>"/></td>
						<td align="left">阿拉伯数字，按从小到大先后显示。0表示不显示</td>
					</tr>
					<tr>
						<td align="center">链接</td>
						<td align="left"><input type="text" name="link" class="inp" value="<?=$slide['link'] ?>"/></td>
						<td align="left">幻灯片所指向得目的页面地址</td>
					</tr>
					<tr>
						<td align="center">图片</td>
						<td align="left">
							<span>当前图片：</span><img src="<?=$this->imgpath.$slide['img'] ?>" style="height:50px; width:250px;"/><br/>
							<span>替换图片：</span><input type='file'  name='img' />
						</td>
						<td align="left">图片大小以 1920px * 396px 为佳</td>
					</tr>
					<tr>
						<td width="189" align="center">&nbsp;</td>
						<td width="579"></td>
						<td width="350" align="left">&nbsp;</td>
					</tr>
					<tr>
						<td width="189">&nbsp;</td>
						<td width="579"><input type="submit" class="sub" value="提交"/>&nbsp;
							<input name="button" type="button" onClick="javascript:history.back()" value="取消"/>
						</td>
						<td width="350" align="left">&nbsp;</td>
					</tr>
				</table>
			</form>

		</div>
	</div>
</body>
</html>
